package com.estate.utils;

public class DocumentStateUtil {

	public static String getStateString(int stateNum) {

		String stateString = "";
		if (stateNum == 1) {
			stateString = "未封卷";
		} else if (stateNum == 2) {
			stateString = "已封卷";
		}
		return stateString;
	}

	public static int getStateInt(String stateString) {

		int stateInt = 0;
		if ("未封卷".equals(stateString)) {
			stateInt = 1;
		} else if ("已封卷".equals(stateString)) {
			stateInt = 2;
		}
		return stateInt;
	}

}
